import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { RouterModule } from '@angular/router';

import { BookSharedModule } from '../../shared';
import {
    ShuService,
    ShuPopupService,
    ShuComponent,
    ShuDetailComponent,
    ShuDialogComponent,
    ShuPopupComponent,
    ShuDeletePopupComponent,
    ShuDeleteDialogComponent,
    shuRoute,
    shuPopupRoute,
    ShuResolvePagingParams,
} from './';

const ENTITY_STATES = [
    ...shuRoute,
    ...shuPopupRoute,
];

@NgModule({
    imports: [
        BookSharedModule,
        RouterModule.forChild(ENTITY_STATES)
    ],
    declarations: [
        ShuComponent,
        ShuDetailComponent,
        ShuDialogComponent,
        ShuDeleteDialogComponent,
        ShuPopupComponent,
        ShuDeletePopupComponent,
    ],
    entryComponents: [
        ShuComponent,
        ShuDialogComponent,
        ShuPopupComponent,
        ShuDeleteDialogComponent,
        ShuDeletePopupComponent,
    ],
    providers: [
        ShuService,
        ShuPopupService,
        ShuResolvePagingParams,
    ],
    schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class BookShuModule {}
